package cn.com.css.taxInspection.workflow.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.com.css.taxInspection.gt3.entity.JcAjxxEntity;
import cn.com.css.taxInspection.workflow.entity.WorkflowNotificationEntity;
import cn.com.css.taxInspection.workflow.mapper.WorkflowNotificationMapper;
import cn.com.css.taxInspection.workflow.service.WorkflowNotificationService;



@Service("workflowNotificationService")
public class WorkflowNotificationServiceImpl extends ServiceImpl<WorkflowNotificationMapper, WorkflowNotificationEntity> implements WorkflowNotificationService {

	@Override
	@DS("master")
	public List<WorkflowNotificationEntity> getByCreateId(String currentUserId) {
		
		LambdaQueryWrapper<WorkflowNotificationEntity> queryWrapper = Wrappers.lambdaQuery();
		
		queryWrapper.eq(WorkflowNotificationEntity::getCreateId, currentUserId);
		
		List<WorkflowNotificationEntity> list = this.list(queryWrapper);
		
		return list;
	}


}